

// 1.引入请求基础方法  
import http from "./config"

// 2.封装api接口
//获取分类导航数据api接口
export const reqCate=()=>http({url: "getcate"})
//获取轮播图数据api接口
export const reqBanner=()=>http({url: "getbanner"})
//获取秒杀商品信息数据api接口
export const reqSeckill=()=>http({url: "getseckill"})
//获取热推商品数据api接口
export const reqHortgoods=()=>http({url: "gethortgoods"})
//获取商品数据api接口
export const reqCates=()=>http({url: "getcates"})
//获取商品列表数据api接口
export const reqGoodlist=(data)=>http({url: "getgoodlist",data})
//获取商品详情数据api接口
export const reqGooddesc=(data)=>http({url: "getgoodsinfo",data})
//获取登录验证码api接口
export const reqsms=(data)=>http({url: "sms",data})
//手机号验证码登录api
export const reqsmslogin=(data)=>http({url: "smslogin",method:'post',data})
//把商品添加到购物车api
export const reqcartadd=(data)=>http({url: "cartadd",method:'post',data})
//获取购物车列表api
export const reqcartlist=(data)=>http({url: "cartlist",data})
//购物车商品数量api
export const reqcartedit=(data)=>http({url: "cartedit",method:'post',data})
//购物车删除商品api
export const reqcartdelete=(data)=>http({url: "cartdelete",method:'post',data})
//获取用户地址列表api
export const reqaddresslist=(data)=>http({url: "addresslist",data})
